<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        console.log(Math.trunc(4.1));
        console.log(Math.trunc(4.9));
        console.log(Math.trunc(-4.1));
        console.log(Math.trunc(-4.9));
        console.log(Math.trunc(-0.1234));
        console.log(Math.trunc('foo'));
        console.log('---------------');
        console.log(Math.sign(-5));
        console.log(Math.sign(5));
        console.log(Math.sign(-0));
        console.log(Math.sign(0));
        console.log(Math.sign(NaN));
        console.log(Math.sign('9'));
    </script>
</body>
</html>